package com.study.sbsummary.config.promethues;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@ConfigurationProperties(prefix = "metrics")
@Configuration
@Data
public class MetricsConfig {

    private String group;

    private String component;

    private String env;

    @PostConstruct
    void init() {
        Metrics.init(group, component, env);
    }
}

